<template>
  <!-- EL-容器组件 -->

  <div class="common-layout">
    <el-container>
      <el-header>
        <!-- 1.顶部栏标题 -->
        <h1 style="background-color: #e8e8e8;color:#fff">header.后台管理系统</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- 2.菜单栏: 菜单组件 -->
          <el-menu style="margin-left: 10px;">
            <el-menu-item index="1">aside.用户管理</el-menu-item>
            <el-menu-item index="2">aside.车辆管理</el-menu-item>
            <el-menu-item index="3">aside.电子围栏管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <!-- 3.主体内容: 表格 -->
          <el-table :data="arr">
            <el-table-column label="编号" width="80" type="index" align="center"/>
            <el-table-column label="姓名" prop="name" align="center"/>
            <el-table-column label="年龄" prop="age" align="center"/>
            <el-table-column label="性别" prop="gender" align="center"/>
            <el-table-column label="手机号" prop="phone" align="center"/>
            <el-table-column label="地址" prop="addr" align="center"/>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>


</template>

<script setup>
import {ref} from "vue";

const arr = ref([
  {name:'张飞',age:10,gender:'男',phone:'12345678901',addr:'北京市学院路圣熙1号'},
  {name:'张飞',age:11,gender:'女',phone:'12345678902',addr:'北京市学院路圣熙2号'},
  {name:'张飞',age:12,gender:'男',phone:'12345678903',addr:'北京市学院路圣熙3号'},
  {name:'张飞',age:13,gender:'女',phone:'12345678904',addr:'北京市学院路圣熙4号'},
  {name:'张飞',age:14,gender:'男',phone:'12345678905',addr:'北京市学院路圣熙5号'},
  {name:'张飞',age:15,gender:'女',phone:'12345678906',addr:'北京市学院路圣熙6号'},
  {name:'张飞',age:16,gender:'男',phone:'12345678907',addr:'北京市学院路圣熙7号'},
  {name:'张飞',age:17,gender:'女',phone:'12345678908',addr:'北京市学院路圣熙8号'},
  {name:'张飞',age:18,gender:'男',phone:'12345678909',addr:'北京市学院路圣熙9号'}
])
</script>

<style scoped>

</style>